package com.woniuxy.userassembly.dao;

import com.woniuxy.userassembly.model.UserCreditInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Liyfi
 * @since 2021-05-25
 */
public interface UserCreditInfoMapper extends BaseMapper<UserCreditInfo> {

    @Insert("insert into hotel_user_credit_info (user_id,credit_change,credit_status) value(#{userId},#{creditChange},#{creditStatus})")
    int addCreditInfo(UserCreditInfo userCreditInfo);


    @Select("select * from hotel_user_credit_info where id = #{Id}")
    UserCreditInfo selUserCreditInfo(int Id);

}
